import { Component, Input, NgModule } from '@angular/core';


@Component({
    selector: 'deliver-list',
    template: `
        <div [attr.data-id]="order.id" [attr.data-seriaNo]="order.serialNo" class="deliver-list {{className}}" fxLayoutAlign="space-between center">
            <span [attr.data-id]="order.id" [attr.data-seriaNo]="order.serialNo" class="inline-block text-30 ellipsis text-left" [ngClass]="{'wleft':showModel}">{{order.serialNo}}</span><span [attr.data-id]="order.id" [attr.data-seriaNo]="order.serialNo"  class="inline-block text-22 ellipsis text-right" [ngClass]="{'wmiddle':showModel}">{{order.qty?order.qty:0}}菜</span><span *ngIf="showModel" class="inline-block wright text-l ellipsis text-right">{{order.deliveryer.name}}</span>
        </div>
    `,
    styleUrls: ['./home.component.scss']
})

export class DeliverList {
    @Input() showModel;
    @Input() className;
    @Input() order;
}